from views import register_handler

from flask import Blueprint, request
# reqparse用来过滤字段
from flask_restful import reqparse


bp = Blueprint('auth', __name__, url_prefix='/auth')


@bp.route('/register', methods=('GET', 'POST'))
def register():
    params = request.get_json()
    register_handler(params)
    return


@bp.route('/login', methods=('POST'))
def login():
    params = request.get_json()
    register_handler(params)
    return


@bp.route('/logout', methods=('POST'))
def logout():
    params = request.get_json()
    register_handler(params)
    return

